//
//  XCPullMenu.h
//  Project
//
//  Created by 苟亚明 on 16/6/3.
//
//

#import <UIKit/UIKit.h>

@protocol XCPullMenuDelegate <NSObject>

// 选中的cell用代理回调
- (void)XCPullMenu:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

@end

typedef void(^Dismiss)(void);

@interface XCPullMenu : UIView<UITableViewDataSource, UITableViewDelegate>

@property (nonatomic, strong) UITableView *tableView;

@property (nonatomic, assign) id<XCPullMenuDelegate> delegate;

@property (nonatomic, strong) NSArray *arrData;


@property (nonatomic, copy) Dismiss dismiss;

- (instancetype)initWithDataArr:(NSArray *)dataArr origin:(CGPoint)origin width:(CGFloat)width rowHeight:(CGFloat)rowHeight;

- (void)dismissWithCompletion:(void (^)(XCPullMenu *object))completion;
@end